package com.qiankun.tang.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.common.library.ui.activity.BaseActivity;
import com.qiankun.tang.R;

/**
 * app启动页
 */
public class StartActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        hideNavigationBar();
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);
        init();
    }
    private void startMainActivity() {
        startActivity(new Intent(this, MainActivity.class));
        overridePendingTransition(R.anim.activity_zoomin, R.anim.activity_zoomout);
        finish();
    }
    private void init() {
        new Handler().postDelayed(new Runnable() {
            public void run() {
                startMainActivity();
            }
        }, 2000);
    }
}
